package com.my.service.impl;


import com.my.mapper.FileInfoMapper;
import com.my.pojo.FileInfo;
import com.my.service.IFileInfoService;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Data
public class fileInfoServiceImpl implements IFileInfoService {

    @Autowired
    private FileInfoMapper fileInfoMapper;

    @Override
    public boolean insertFileInfo(FileInfo fileInfo) {
        return fileInfoMapper.insertFileInfo(fileInfo);
    }

    @Override
    public Boolean isExistFileInfo(String filePath,String fileName) {
        return fileInfoMapper.isExistFileInfo(filePath,fileName);
    }

    @Override
    public List<FileInfo> searchFileInfoByName(String fileName, String creator) {
        return fileInfoMapper.searchFileInfoByName(fileName,creator);
    }



}
